package com.douxg.learning.springboot.resttemplate;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description
 * @Auther douxg
 * @Date 2020/12/30 14:08
 */
@Configuration
@ConditionalOnProperty(value = "ssa.police.project.name", havingValue = "sub2")
public class Sub2Config {
    @Bean("testController")
    public Sub2TestController createMainService3() {
        return new Sub2TestController();
    }
}
